package unimelb.filesync.common.message;

import org.json.simple.JSONObject;

public class SecretKeyMsg implements Jsonable {

    private final String secretKey;

    public SecretKeyMsg(String secretKey) {
        super();
        this.secretKey = secretKey;
    }

    public String getSecretKey() {
        return secretKey;
    }

    @SuppressWarnings("unchecked")
    @Override
    public String toJson() {
        final JSONObject jsonObject = new JSONObject();
        jsonObject.put("secretKey", secretKey);
        return jsonObject.toJSONString();
    }
}
